package com.bxd.baodan.item;

import com.google.gson.Gson;
import com.bxd.baodan.base.BaseItem;

public class RowsItem extends BaseItem{
	
	private String q_id;
	private String title;
	private String q_title;
	private int q_answer_count;
	private String q_create_date;
	private String[] keyLabel;
	private UserItem user;
	private String userString;
	private String q_last_agent_uid;
	private String q_content;
	private String q_options;
	private String u_id;
	private String last_answer;
	public String getQ_id() {
		return q_id;
	}
	public void setQ_id(String q_id) {
		this.q_id = q_id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getQ_title() {
		return q_title;
	}
	public void setQ_title(String q_title) {
		this.q_title = q_title;
	}
	public int getQ_answer_count() {
		return q_answer_count;
	}
	public void setQ_answer_count(int q_answer_count) {
		this.q_answer_count = q_answer_count;
	}
	public String getQ_create_date() {
		return q_create_date;
	}
	public void setQ_create_date(String q_create_date) {
		this.q_create_date = q_create_date;
	}
	public String[] getKeyLabel() {
		return keyLabel;
	}
	public void setKeyLabel(String[] keyLabel) {
		this.keyLabel = keyLabel;
	}
	public UserItem getUser() {
		if (user == null) {
			try {
				user = new Gson().fromJson(getUserString(), UserItem.class);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return user;
	}
	public void setUser(UserItem user) {
		this.user = user;
	}

	public String getUserString() {
		if (userString == null) {
			userString = new Gson().toJson(user);
		}
		return userString;
	}

	public void setUserString(String userString) {
		this.userString = userString;
	}
	public String getQ_last_agent_uid() {
		return q_last_agent_uid;
	}
	public void setQ_last_agent_uid(String q_last_agent_uid) {
		this.q_last_agent_uid = q_last_agent_uid;
	}
	public String getQ_content() {
		return q_content;
	}
	public void setQ_content(String q_content) {
		this.q_content = q_content;
	}
	public String getQ_options() {
		return q_options;
	}
	public void setQ_options(String q_options) {
		this.q_options = q_options;
	}
	public String getU_id() {
		return u_id;
	}
	public void setU_id(String u_id) {
		this.u_id = u_id;
	}
	public String getLast_answer() {
		return last_answer;
	}
	public void setLast_answer(String last_answer) {
		this.last_answer = last_answer;
	}

}
